package com.ruoyi.wx.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.wx.mapper.MerchantVerificationMapper;
import com.ruoyi.wx.domain.MerchantVerification;
import com.ruoyi.wx.service.IMerchantVerificationService;

/**
 * 商户认证Service业务层处理
 * 
 * @author wx
 * @date 2025-05-12
 */
@Service
public class MerchantVerificationServiceImpl implements IMerchantVerificationService 
{
    @Autowired
    private MerchantVerificationMapper merchantVerificationMapper;

    /**
     * 查询商户认证
     * 
     * @param id 商户认证主键
     * @return 商户认证
     */
    @Override
    public MerchantVerification selectMerchantVerificationById(Long id)
    {
        return merchantVerificationMapper.selectMerchantVerificationById(id);
    }

    @Override
    public MerchantVerification selectMerchantVerificationByMobile(MerchantVerification merchantVerification) {
        return merchantVerificationMapper.selectMerchantVerificationByMobile(merchantVerification);
    }

    /**
     * 查询商户认证列表
     * 
     * @param merchantVerification 商户认证
     * @return 商户认证
     */
    @Override
    public List<MerchantVerification> selectMerchantVerificationList(MerchantVerification merchantVerification)
    {
        return merchantVerificationMapper.selectMerchantVerificationList(merchantVerification);
    }

    /**
     * 新增商户认证
     * 
     * @param merchantVerification 商户认证
     * @return 结果
     */
    @Override
    public int insertMerchantVerification(MerchantVerification merchantVerification)
    {
        return merchantVerificationMapper.insertMerchantVerification(merchantVerification);
    }

    /**
     * 修改商户认证
     * 
     * @param merchantVerification 商户认证
     * @return 结果
     */
    @Override
    public int updateMerchantVerification(MerchantVerification merchantVerification)
    {
        return merchantVerificationMapper.updateMerchantVerification(merchantVerification);
    }

    /**
     * 批量删除商户认证
     * 
     * @param ids 需要删除的商户认证主键
     * @return 结果
     */
    @Override
    public int deleteMerchantVerificationByIds(Long[] ids)
    {
        return merchantVerificationMapper.deleteMerchantVerificationByIds(ids);
    }

    /**
     * 删除商户认证信息
     * 
     * @param id 商户认证主键
     * @return 结果
     */
    @Override
    public int deleteMerchantVerificationById(Long id)
    {
        return merchantVerificationMapper.deleteMerchantVerificationById(id);
    }
}
